Package org.python.pydev.debug.model

Source Code of org.python.pydev.debug.model.PyThreadConsole

package org.python.pydev.debug.model;

import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.model.IProcess;

/**
* A specialisation of PyThread that can't be "controlled" by the user.
*/
public class PyThreadConsole extends PyThread {

    public PyThreadConsole(AbstractDebugTarget target) {
        super(target, "console_main", "console_main");
    }

    @Override
    public boolean canResume() {
        return false;
    }

    @Override
    public boolean canStepInto() {
        return false;
    }

    @Override
    public boolean canStepOver() {
        return false;
    }

    @Override
    public boolean canStepReturn() {
        return false;
    }

    @Override
    public boolean canSuspend() {
        return false;
    }

    @Override
    public String getName() throws DebugException {
        IProcess process = getDebugTarget().getProcess();
        return process.getLabel();
    }
}
TOP

Related Classes of org.python.pydev.debug.model.PyThreadConsole

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.